home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / LIBTIFF / CONTRIB / MAC-MPW / top.make < prev   
Encoding:
Text File  |  1999-09-11  |  3.3 KB  |  134 lines

  1. #
  2. # Tag Image File Format Library
  3. #
  4. # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
  5. # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  6. # Permission to use, copy, modify, distribute, and sell this software and 
  7. # its documentation for any purpose is hereby granted without fee, provided
  8. # that (i) the above copyright notices and this permission notice appear in
  9. # all copies of the software and related documentation, and (ii) the names of
  10. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  11. # publicity relating to the software without the specific, prior written
  12. # permission of Stanford and Silicon Graphics.
  13. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  14. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  15. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  16. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  17. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  18. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  20. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  21. # OF THIS SOFTWARE.
  22. #
  23.  
  24. #
  25. # Makefile for Mac using MPW 3.2.3 and MPW C 3.2.4
  26. #
  27. #
  28. #  Written by: Niles D. Ritter
  29. #
  30.  
  31. RM= delete -y -i
  32. PORT=:port:
  33. LIBTIFF=:libtiff:
  34. TOOLS=:tools:
  35. CONTRIB=:contrib:mac-mpw:
  36.  
  37. MACTRANS="{CONTRIB}mactrans"
  38.  
  39. NULL=
  40.  
  41. MAKEFILES = %b6
  42.     {PORT}Makefile %b6
  43.     {LIBTIFF}Makefile %b6
  44.     {TOOLS}Makefile %b6
  45.     {NULL}
  46.     
  47. all %c4 PORT LIBTIFF TOOLS
  48.  
  49. MAKEFILES %c4 {MAKEFILES}
  50. TOOLS %c4 LIBTIFF
  51.  
  52. LIBTIFF %c4 PORT
  53.  
  54. # Create the port routines
  55. PORT %c4 {PORT}Makefile
  56.     directory {PORT}
  57.     (make || set status 0) > build.mpw
  58.     set echo 1
  59.     execute build.mpw
  60.     set echo 0
  61.     {RM} build.mpw  || set status 0
  62.     directory ::
  63.  
  64. # Create the port routines
  65. LIBTIFF %c4 {LIBTIFF}Makefile
  66.     directory {LIBTIFF}
  67.     (make || set status 0) > build.mpw
  68.     set echo 1
  69.     execute build.mpw
  70.     set echo 0
  71.     {RM} build.mpw  || set status 0
  72.     directory ::
  73.  
  74. # Create the tools
  75. TOOLS %c4 {TOOLS}Makefile
  76.     directory {TOOLS}
  77.     (make || set status 0) > build.mpw
  78.     set echo 1
  79.     execute build.mpw
  80.     set echo 0
  81.     {RM} build.mpw  || set status 0
  82.     directory ::
  83.  
  84. # Makefile dependencies
  85. {PORT}Makefile  %c4 {CONTRIB}port.make
  86.     catenate {CONTRIB}port.make | {MACTRANS} > {PORT}Makefile
  87.  
  88. {LIBTIFF}Makefile  %c4 {CONTRIB}libtiff.make
  89.     catenate {CONTRIB}libtiff.make | {MACTRANS} > {LIBTIFF}Makefile
  90.  
  91. {TOOLS}Makefile  %c4 {CONTRIB}tools.make
  92.     catenate {CONTRIB}tools.make | {MACTRANS} > {TOOLS}Makefile
  93.  
  94.  
  95. clean %c4  clean.port clean.contrib clean.libtiff clean.tools clean.make
  96.  
  97. clean.port %c4
  98.     directory {PORT}
  99.     (make clean || set status 0) > purge
  100.     purge
  101.     {RM} purge  || set status 0
  102.     {RM} Makefile || set status 0
  103.     {RM} build.mpw || set status 0
  104.     cd ::
  105.  
  106. clean.contrib %c4
  107.     {RM} {MACTRANS} || set status 0
  108.     
  109. clean.libtiff %c4
  110.     directory {LIBTIFF}
  111.     (make clean || set status 0) > purge
  112.     purge
  113.     {RM} purge  || set status 0
  114.     {RM} Makefile || set status 0
  115.     {RM} build.mpw || set status 0
  116.     cd ::
  117.  
  118. clean.tools %c4
  119.     directory {TOOLS}
  120.     (make clean || set status 0) > purge
  121.     purge
  122.     {RM} purge  || set status 0
  123.     {RM} Makefile || set status 0
  124.     {RM} build.mpw || set status 0
  125.     cd ::
  126.  
  127. clean.make %c4
  128.     {RM} {MAKEFILES} || set status 0
  129.     {RM} build.mpw || set status 0
  130.  
  131.